/*
 * Timing.h
 *
 *  Created on: 2012-5-2
 *      Author: chenjialiang
 */
#pragma once
#include <sys/time.h>

#ifndef TIMING_H_
#define TIMING_H_


long TimeInMilliseconds(void)
{
    struct timeval tv;

    gettimeofday(&tv,NULL);
    return (((long long)tv.tv_sec)*1000)+(tv.tv_usec/1000);
}

#endif /* TIMING_H_ */
